package com.gridpower.spreadsheet.client.models;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * the constructor should set some default values for the
 * cell.
 * @author Administrator
 *
 */
public class GridCell implements IsSerializable{
	int row = 0;
	int col = 0;
	protected String displayString = "";
	protected DisplayStyle displayStyle = new DisplayStyle();
	protected String expression = "";
	protected String format = ""; // format of number...
	// width and height of the cell
	protected int width;
	protected int height;
	
	public int getHeight() {
		return height;
	}
	public int getWidth() {
		return width;
	}
	public int getCol() {
		return col;
	}
	public int getRow() {
		return row;
	}
	public String getDisplayString() {
		return displayString;
	}
	public DisplayStyle getDisplayStyle() {
		return displayStyle;
	}
	public String getExpression() {
		return expression;
	}
	public String getFormat() {
		return format;
	}

	public void setHeight(int height) {
		this.height = height;
	}
	public void setWidth(int width) {
		this.width = width;
	}
	public void setCol(int col) {
		this.col = col;
	}
	public void setRow(int row) {
		this.row = row;
	}
	public void setDisplayString(String displayString) {
		this.displayString = displayString;
	}
	public void setDisplayStyle(DisplayStyle displayStyle) {
		this.displayStyle = displayStyle;
	}
	public void setExpression(String expression) {
		this.expression = expression;
	}
	public void setFormat(String format) {
		this.format = format;
	}

}
